<style>
    body{
        background:#f2f2f2!important;
    }
    .xian {
        width: 8px;
        height: 20px;
        background: #486bd3;
        margin-right: 10px;
        margin-left: 10px;
    }

    .tab-top-label{
        box-sizing: border-box;
        /*background: #e3eced;*/
        display: flex;
        align-items: center;
        font-size: 14px;
        color: #666;
        line-height: 30px;
        margin-bottom: 10px;
    }
    .tab-label{
        width: 100px;
        text-align: center;
        cursor: pointer;
        height: 30px;
        line-height: 30px;
        border-radius: 4px;
        margin-left: 40px;
        margin-bottom: 0;
    }
    .tab-label:nth-child(1){
        margin-left: 0;
    }
    .tab-labels{
        box-sizing: border-box;
        background: #edf0f9;
        display: flex;
        align-items: center;
        font-size: 16px;
        color: #333;
        line-height: 30px;
        margin-bottom: 10px;
        margin-top: 10px;
    }
    .control-label {
        font-weight: normal!important;
    }
    .tabs-content{
        display: flex;
        flex-direction: column-reverse;
        padding-top: 20px;
        width: 98%;
        margin: auto;
    }

    .tabs-content > .tab {
        display: none;
    }
    .tabs-content > div.active {
        display: block;
    }
    .hang .col-sm-2 {
        width: 100%;
        text-align: left;
    }
    .hang{
        width: 100%;
        display: flex;
    }
    .hang .form-group{
        width: 25%;
        float: left;
    }
    #tab1 input{
        background-color: #fff!important;
    }
    #tab4 input{
        background-color: #fff!important;
    }
    #tab4 select{
        background-color: #fff!important;
    }
    #tab1 textarea{
        background-color: #fff!important;
    }
    .tabs-content .tab .left{
        width: calc((100% - 20px) / 4);
        float: left;
        margin-left: 20px;
    }
    .tabs-content .tab .right{
        width: calc((100% - 20px) / 4);
        float: left;
    }
    .tabs-content .tab .zhong{
        width: calc((100% - 20px) / 4);
        float: left;
    }

    .tabs .col-sm-2{
        width: 100%;
        text-align: left;
    }
    .tcxm-td td{
        background: #4e73df;
        color: #fff;
        text-align: center;
        border-right: 1px solid;
        vertical-align: middle!important;
    }
    .form-inline input{
        width: 100%!important;
    }
    #tab4 .form-inline td:nth-child(1) input{
        width: 12%!important;
    }
    .form-inline td{
        border-right: 1px solid #e6e6e6;
        border-bottom: 1px solid #e6e6e6;
    }
    .form-inline td:nth-child(1){
        border-left: 1px solid #e6e6e6;
    }
    .form-inline td:nth-child(1){
        text-align: center;
    }
    .xia{
        width: 100%;
        display: flow-root;
    }

    .tab-label.active{
        background: #4e73df;
        color: #fff;
    }
    #treeview .jstree-leaf{
        float: none!important;
    }
    .zhanshi{
        display: none;
    }
</style>
<input type="hidden" id="bids" value="{$row.id}">
<div class="tabs">
    <div class="tab-top-label">
        <!--            <div class="xian"></div>-->
        <label class="tab-label active" for="tab1">报案信息</label>
        <label class="tab-label" for="tab2">查勘录入</label>
        <label class="tab-label " for="tab3">影像上传</label>
        <label class="tab-label" for="tab4" id="tab44">车辆服务情况</label>
        {if in_array(1,$task)}
        <label class="tab-label " for="tab5" id="tab55">本车车损</label>
        {/if}
        {if in_array(4,$task)}
        <label class="tab-label" for="tab6" id="tab66">三者车损</label>
        {/if}
        {if in_array(2,$task)}
        <label class="tab-label " for="tab7" id="tab77">三者财物损失</label>
        {/if}
        {if in_array(4,$task)}
        <label class="tab-label " for="tab8" id="tab88">本车人伤</label>
        {/if}
        {if in_array(5,$task)}
        <label class="tab-label " for="tab9" id="tab99">三者人伤</label>
        {/if}
    </div>

    <div class="tabs-content">
        <input type="hidden" id="ids" value="{$row.id}">
        <div id="tab1" class="tab active form-horizontal">
            <div class="tab-labels">
                <div class="xian"></div>
                接报案录入
            </div>
            <div class="hang">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('报案单号')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-baoan_id" class="form-control"  type="text" value="{$row.baoan_id}" readonly>
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('服务单号')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-tong_number" class="form-control"  type="text" value="{$row.tong_number}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('车牌号')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-car_num" class="form-control"  type="text" value="{$row.car_num}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('车架号')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-car_vin" class="form-control"  type="text" value="{$row.car_vin}">
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('被服务人')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-learned_name" class="form-control"  type="text" value="{$row.learned_name}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('被服务人手机')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-learned_phone" class="form-control"  type="text" value="{$row.learned_phone}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('核统日期')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-yw_hetong_time" class="form-control"  type="text" value="{:date('Y-m-d', $row['yw_hetong_time'])}">
                        <!--                            <input id="c-yw_hetong_time" class="form-control" name="row[yw_hetong_time]" type="text" value="{$row.yw_hetong_time}">-->
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('归属部门')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-yw_class" class="form-control" type="text" value="{$row.yw_class_text}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('归属人')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-yw_belonger" class="form-control"  type="text" value="{$row.yw_belonger}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('服务起期')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-plan_strattime" class="form-control"  type="text" value="{:date('Y-m-d', $row['plan_strattime'])}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('服务止期')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-plan_endtime" class="form-control" " type="text" value="{:date('Y-m-d', $row['plan_endtime'])}">
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('报案人')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-baoan_ren" class="form-control"  type="text" value="{$row.baoan_ren}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('报案人电话')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-baoan_phone" class="form-control"  type="text" value="{$row.baoan_phone}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('报案时间')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-baoan_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{$row['baoan_time'] ? date('Y-m-d H:i:s', $row['baoan_time']) : ''}">
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('出险时间')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-chuxian_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{$row['chuxian_time'] ? date('Y-m-d H:i:s', $row['chuxian_time']) : ''}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('事故情况')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input type="text" class="form-control" value="{$row.shigu_condition}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('是否有人伤')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input type="text" class="form-control" value="{$row['is_renshang'] == 0 ? '否' : '是'}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('交强投保公司')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-car_tbgs" class="form-control" type="text" value="{$row.car_tbgs}">
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('驾驶员')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-car_ren" class="form-control"  type="text" value="{$row.car_ren}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('驾驶员电话')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-phone" class="form-control"  type="text" value="{$row.phone}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('道路类型')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input type="text" class="form-control" value="{$row.daolu_type}">
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('是否现场报案')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input type="text" class="form-control" value="{$row.is_xcba == 0 ? '否' : '是'}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('是否联系交警')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input type="text" class="form-control" value="{$row.is_lxjj == 0 ? '否' : '是'}">
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('出险地点')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input id="c-address" class="form-control"  type="text" value="{$row.address}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('查勘人')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input class="form-control"  type="text" value="{$row.chakan_ren}">
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('电话')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <input class="form-control" type="text" value="{$row.mobile}">
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group" style="width: 100%">
                    <label class="control-label col-xs-12 col-sm-2">{:__('出险描述')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <textarea id="c-chuxian_describe" class="form-control"  type="text" rows="5" value="" readonly>{$row.chuxian_describe}</textarea>
                    </div>
                </div>
            </div>
            <div class="hang">
                <div class="form-group" style="width: 100%!important;">
                    <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <textarea class="form-control"  type="text" rows="5" value="" readonly>{$row.beizhu}</textarea>
                    </div>
                </div>
            </div>
        </div>
        <div id="tab2" class="tab">
            <form id="luru-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                <input type="hidden" name="row[id]" value="{$row.id}">
                <div class="tab-labels">
                    <div class="xian"></div>
                    查勘录入
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('报案单号')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-baoan_id" class="form-control" name="row[baoan_id]" type="text" value="{$row.baoan_id}" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('报案时间')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-baoan_time" class="form-control datetimepicker" name="row[baoan_time]" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{$row['baoan_time'] ? date('Y-m-d H:i:s', $row['baoan_time']) : ''}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('车牌号')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_num" class="form-control"  name="row[car_num]" type="text" value="{$row.car_num}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('被服务人')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-learned_name" class="form-control" name="row[learned_name]"  type="text" value="{$row.learned_name}">
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('联系电话')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-phone" class="form-control" name="row[phone]"  type="text" value="{$row.phone}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('驾驶员')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_ren" class="form-control" name="row[car_ren]"  type="text" value="{$row.car_ren}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('出险时间')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-chuxian_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" name="row[chuxian_time]" value="{$row['chuxian_time'] ? date('Y-m-d H:i:s', $row['chuxian_time']) : ''}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('实际驾驶员')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-sj_car_ren" class="form-control"  name="row[sj_car_ren]" type="text" value="{$row.sj_car_ren}" data-rule="required">
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('性别')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select class="form-control" name="row[sex]">
                                <option value="">请选择性别</option>
                                <option value="男" {if condition="$row['sex'] eq '男'"}selected{else/}''{/if}>男</option>
                                <option value="女" {if condition="$row['sex'] eq '女'"}selected{else/}''{/if}>女</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('驾驶证号')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_card" class="form-control"  name="row[car_card]" type="text" value="{$row.car_card}" data-rule="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('准驾车型')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select class="form-control" name="row[car_zhunjia]" data-rule="required" id="c-car_zhunjia">
                                <option value="">请选择准驾车型</option>
                                <?php foreach($site['zhunjia'] as $k => $v){?>
                                <option value="{$v}" {if condition="$row['car_zhunjia'] eq $v"}selected{else/}''{/if}>{$v}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('事故原因')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select class="form-control" name="row[shigu_yuanyin]" data-rule="required" id="c-shigu_yuanyin">
                                <option value="">请选择事故原因</option>
                                <?php foreach($site['shiguyuanyin'] as $k => $v){?>
                                <option value="{$v}" {if condition="$row['shigu_yuanyin'] eq $v"}selected{else/}''{/if}>{$v}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>

                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('预估责任')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-shigu_zeren" class="form-control"  name="row[shigu_zeren]" type="number" value="{$row.shigu_zeren}" oninput='chuli_money()'  data-rule="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('事故整体预估金额')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-liucheng" class="form-control"  name="row[liucheng]" type="number" value="{$row.liucheng}" oninput='chuli_money()'  data-rule="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('预估金额')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-yufu" class="form-control"  name="row[yufu]" type="text" value="{$row.yufu}" oninput='chuli_money()'>
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('事故处理部门')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select class="form-control" name="row[shigu_group]"  data-rule="required" id="c-shigu_group">
                                <option value="">请选择事故处理部门</option>
                                <?php foreach($site['shigubumen'] as $k => $v){?>
                                <option value="{$v}" {if condition="$row['shigu_group'] eq $v"}selected{else/}''{/if}>{$v}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('道路类型')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select class="form-control" name="row[daolu_type]">
                                <option value="">请选择道路类型</option>
                                <?php foreach($site['daoluleixing'] as $k => $v){?>
                                <option value="{$v}" {if condition="$row['daolu_type'] eq $v"}selected{else/}''{/if}>{$v}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('事故类型')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select class="form-control" name="row[shigu_type]"  data-rule="required" id="c-shigu_type">
                                <option value="">请选择事故类型</option>
                                <?php foreach($site['shiguleixing'] as $k => $v){?>
                                <option value="{$v}" {if condition="$row['shigu_type'] eq $v"}selected{else/}''{/if}>{$v}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('重大案件')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[zhongda_anjian]" data-rule="required" id="c-zhongda_anjian">
                                <option value="">请选择是否为重大案件</option>
                                <option value="是" {if condition="$row['zhongda_anjian'] eq '是'"}selected{else/}''{/if}>是</option>
                                <option value="否" {if condition="$row['zhongda_anjian'] eq '否'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('案件状态')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select class="form-control" name="row[anjian_type]"  data-rule="required" id="c-anjian_type">
                                <option value="">请选择案件状态</option>
                                <?php foreach($site['anjianzhuangtai'] as $k => $v){?>
                                <option value="{$v}" {if condition="$row['anjian_type'] eq $v"}selected{else/}''{/if}>{$v}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('三责伤')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[sanze_shang]"  data-rule="required" id="c-sanze_shang">
                                <option value="">是否三责伤</option>
                                <option value="是" {if condition="$row['sanze_shang'] eq '是'"}selected{else/}''{/if}>是</option>
                                <option value="否" {if condition="$row['sanze_shang'] eq '否'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('三者亡')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[sanzhe_wang]" data-rule="required" id="c-sanzhe_wang">
                                <option value="">是否三者亡</option>
                                <option value="是" {if condition="$row['sanzhe_wang'] eq '是'"}selected{else/}''{/if}>是</option>
                                <option value="否" {if condition="$row['sanzhe_wang'] eq '否'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('本车伤')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[benche_shang]" data-rule="required" id="c-benche_shang">
                                <option value="">是否本车伤</option>
                                <option value="是" {if condition="$row['benche_shang'] eq '是'"}selected{else/}''{/if}>是</option>
                                <option value="否" {if condition="$row['benche_shang'] eq '否'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('本车亡')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[benche_wang]" data-rule="required" id="c-benche_wang">
                                <option value="">是否本车亡</option>
                                <option value="是" {if condition="$row['benche_wang'] eq '是'"}selected{else/}''{/if}>是</option>
                                <option value="否" {if condition="$row['benche_wang'] eq '否'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('三者车辆数')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-sanzhe_che" class="form-control"  name="row[sanzhe_che]" type="text" value="{$row.sanzhe_che}">
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('是否施救')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[is_shijiu]" data-rule="required" id="c-is_shijiu">
                                <option value="">请选择是否施救</option>
                                <option value="0" {if condition="$row['is_shijiu'] eq '0'"}selected{else/}''{/if}>是</option>
                                <option value="1" {if condition="$row['is_shijiu'] eq '1'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('是否道路交通事故')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[is_daoshigu]" data-rule="required" id="c-is_daoshigu">
                                <option value="">请选择是否道路交通事故</option>
                                <option value="0" {if condition="$row['is_daoshigu'] eq '0'"}selected{else/}''{/if}>是</option>
                                <option value="1" {if condition="$row['is_daoshigu'] eq '1'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('交管事故书')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[shigubook]" data-rule="required" id="c-shigubook">
                                <option value="">请选择是否交管事故书</option>
                                <option value="0" {if condition="$row['shigubook'] eq '0'"}selected{else/}''{/if}>是</option>
                                <option value="1" {if condition="$row['shigubook'] eq '1'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('事故书编号')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-shigubook_id" class="form-control"  name="row[shigubook_id]" type="text" value="{$row.shigubook_id}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('代位求偿')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[daiwei]" data-rule="required"id="c-daiwei">
                                <option value="">请选择是否代位求偿</option>
                                <option value="0" {if condition="$row['daiwei'] eq '0'"}selected{else/}''{/if}>是</option>
                                <option value="1" {if condition="$row['daiwei'] eq '1'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('第一现场')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  class="form-control" name="row[xianchang]" data-rule="required" id="c-xianchang">
                                <option value="">请选择是否为第一现场</option>
                                <option value="是" {if condition="$row['xianchang'] eq '是'"}selected{else/}''{/if}>是</option>
                                <option value="否" {if condition="$row['xianchang'] eq '否'"}selected{else/}''{/if}>否</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('查勘机构')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-chakan_group" class="form-control"  type="text" value="{$row.chakan_group_name}">
                            <input id="c-chakan_group" class="form-control"  name="row[chakan_group]" type="hidden" value="{$row.chakan_group}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('查勘员')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-chakan_ren" class="form-control"  name="row[chakan_ren]" type="text" value="{$row.chakan_ren}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('电话')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-mobile" class="form-control"  name="row[mobile]" type="text" value="{$row.mobile}">
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('查勘时间')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-chakan_time" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" name="row[chakan_time]" value="{$row['chakan_time'] ? date('Y-m-d H:i:s', $row['chakan_time']) : ''}" data-rule="required">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('查勘地点')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select class="form-control" name="row[chakan_add]" data-rule="required" id="c-chakan_add">
                                <option value="">请选择查勘地点</option>
                                <?php foreach($site['chakandidian'] as $k => $v){?>
                                <option value="{$v}" {if condition="$row['chakan_add'] eq $v"}selected{else/}''{/if}>{$v}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group" style="width: 100%">
                        <label class="control-label col-xs-12 col-sm-2">{:__('案件详细经过')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <textarea id="c-anjian_jingguo" class="form-control"  name="row[anjian_jingguo]" type="text" rows="5" value="">{$row.anjian_jingguo}</textarea>
                        </div>
                    </div>
                </div>
                <div class="hang">
                    <div class="form-group" style="width: 100%!important;">
                        <label class="control-label col-xs-12 col-sm-2">{:__('备注')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <textarea class="form-control"  name="row[anjian_beizhu]" type="text" rows="5" value="">{$row.anjian_beizhu}</textarea>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div id="tab3" class="tab">
            <form id="file-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
                <input type="hidden" id="class_id" name="category">
                <div class="tab-labels">
                    <div class="xian"></div>
                    影像上传
                </div>
                <div>
                    <div class="form-group ">
                        <label class="control-label col-xs-12 col-sm-2"></label>
                        <div class="col-xs-12 " style="margin-left: 17%;">
                            <button  class="tab-label2 btn btn-primary btn-embossed" type="button" id="all_files" style="background: #1b4fe7">显示全部</button>
                        </div>
                    </div>
                </div>
                <div>
                    <div class="left" style="height: 500px;overflow-y: scroll;overflow-x: scroll;width: 15%;">
                        <div class="form-group" style="margin-right: 0">
                            <div class="col-xs-12 col-sm-10">
                                <div id="treeview"></div>
                            </div>
                        </div>
                    </div>

                    <div class="zhong" style="width: calc(85% - 40px);margin-left: 20px;">
                        <div class="form-group">
                            <div class="col-xs-12">
                                <div class="input-group" style="display: block;">
                                    <input type="hidden" name="row[files]" id="images">
                                    <div class="input-group-addon no-border no-padding" style="width: 100%;position: relative">
                                        <div style="position: absolute;left:0;top:0;width:100%;height:100%;opacity: 0" id="ss"></div>
                                    </div>
                                    <textarea id="c-files" class="form-control" name="row[files]" style="margin-top: 10px;display: none" rows="5"></textarea>
                                    <span class="msg-box n-right"></span>
                                </div>
                                <ul class="row list-inline faupload-preview" id="p-files"></ul>
                            </div>
                        </div>
                    </div>
                </div>
            </form>
        </div>
        <div id="tab4" class="tab form-horizontal">
            <div class="top">
                <div class="tab-labels">
                    <div class="xian"></div>
                    车辆信息
                </div>
                <div class="left">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Plan_strattime')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-plan_strattime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{:date('Y-m-d H:i:s', $res['plan_strattime'])}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Yw_come')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-yw_come" class="form-control"  type="text" value="{$res.yw_come}" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_num')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_num" class="form-control"  type="text" value="{$res.car_num}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_register')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_register" class="form-control"  type="text" value="{$res.car_register}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_use_nature')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  id="c-car_use_nature" class="form-control">
                                <?php foreach($xingzhi as $k => $v){?>
                                <option value="{$v}" <?php if($res['car_use_nature']== $v){?> selected<?php }?>>{$k}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_carry_peo')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_carry_peo" class="form-control"  type="number" value="{$res.car_carry_peo}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_curb_weight')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_curb_weight" class="form-control"  type="text" value="{$res.car_curb_weight}">
                        </div>
                    </div>

                </div>
                <div class="zhong">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Plan_endtime')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-plan_endtime" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true"  type="text" value="{:date('Y-m-d H:i:s', $res['plan_endtime'])}">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Yw_class')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-yw_class" class="form-control"  type="text" value="{$res.yw_class_text}">
                            <input id="yw_class" class="form-control"  type="hidden" value="{$res.yw_class}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_vin')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_vin" class="form-control"  type="text" value="{$res.car_vin}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Chexing')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  id="c-chexing"  class="form-control">
                                <?php foreach($chexing as $k => $v){?>
                                <option value="{$v}" <?php if($res['chexing']== $v){?> selected<?php }?>>{$k}</option>
                                <?php }?>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_carry_quality')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_carry_quality" class="form-control"  type="text" value="{$res.car_carry_quality}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_reall')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_reall" class="form-control"  type="text" value="{$res.car_reall}">
                        </div>
                    </div>
                </div>
                <div class="right">
                    <div class="form-group" style="height: 62px;padding-top: 25px;">
                        <label class="control-label col-xs-12" style="width: 20%;text-align: left;padding-right: 0;">服务天数:</label>
                        <div class="col-xs-12 col-sm-8" style="padding-left: 0;margin-top: 7px;" id="datecount">
                            365天
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Yw_belonger')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-yw_belonger" class="form-control"  type="text" value="{$res.yw_belonger}" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_engine')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_engine" class="form-control"  type="text" value="{$res.car_engine}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Chexing_ci')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-ncd" class="form-control"  type="text" value="{$res.ncd}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_buy')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_buy" class="form-control"  type="text" value="{$res.car_buy}">
                        </div>
                    </div>
                </div>
                <div class="right">
                    <div class="form-group" style="height: 62px;">
                        <label class="control-label col-xs-12" style="width: 20%;text-align: left;padding-right: 0;"></label>
                        <div class="col-xs-12 col-sm-10" style="margin-top: 7px;padding-left: 0;">

                        </div>
                    </div>
                    <div class="form-group" style="height: 62px;">
                        <label class="control-label col-xs-12" style="width: 20%;text-align: left;padding-right: 0;"></label>
                        <div class="col-xs-12 col-sm-10" style="margin-top: 7px;padding-left: 0;">

                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('Car_factory_num')}<span style="color:red">*</span>:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_factory_num" class="form-control"  type="text" value="{$res.car_factory_num}">
                        </div>
                    </div>
                </div>
            </div>
            <div class="xia">
                <div class="tab-labels">
                    <div class="xian"></div>
                    服务项目
                </div>
                <div class="form-group">
                    <div class="col-xs-12">
                        <table class="table fieldlist" data-template="basictpl" data-name="res[basic]" id="first-table">
                            <tr class="tcxm-td">
                                <!--                                <td><input type="checkbox" name="" id="checks"></td>-->
                                <td>{:__('主服务项目')}</td>
                                <td>{:__('服务金额')}</td>
                                <!--                                <td>{:__('不计免赔')}</td>-->
                                <td>{:__('标准服务费')}</td>
                                <td>{:__('折扣(%)')}</td>
                                <td>{:__('应缴服务费')}</td>
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" name="res[main_name]" id="main_name" value="1" class="chk" <?= $res['main_name'] ==1? ' checked="checked"' : '';?>>-->
                                <!--                                </td>-->
                                <td>机动车损失服务</td>
                                <td><input type="text"  id="main_money" class="form-control" size="15" value="{$res.main_money}" placeholder="" readonly/></td>
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" value="{$res.main_franchise}" name="res[main_franchise]" id="main_franchise">-->
                                <!--                                </td>-->
                                <td><input type="text"  id="main_standard" class="form-control zongshu" value="{$res.main_standard}" readonly/></td>
                                <td><input type="text"  id="sun" class="form-control"  value="{$res.main_discount}" readonly /></td>
                                <td><input type="text"  id="main_submit" class="form-control zong_tongchou" value="{$res.main_submit}" readonly/></td>
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" name="res[main_disan]" id="main_disan" value="1" class="chk" <?= $res['main_disan'] ==1? ' checked="checked"' : '';?>>-->
                                <!--                                </td>-->
                                <td>机动车第三者责任服务</td>
                                <td>
                                    <select  id="main_santong" class="form-control" style="width: 100%">
                                        <option value="">请选择</option>
                                        <option value="3000000" <?php if($res['main_santong']=="3000000"){?> selected<?php }?>>300万</option>
                                        <option value="2000000" <?php if($res['main_santong']=="2000000"){?> selected<?php }?>>200万</option>
                                        <option value="1500000" <?php if($res['main_santong']=="1500000"){?> selected<?php }?>>150万</option>
                                        <option value="1000000" <?php if($res['main_santong']=="1000000"){?> selected<?php }?>>100万</option>
                                        <option value="500000" <?php if($res['main_santong']=="500000"){?> selected<?php }?>>50万</option>
                                    </select>
                                </td>
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" value="{$res.main_ji}" name="res[main_ji]" id="main_ji" />-->
                                <!--                                </td>-->
                                <td><input type="text"  id="main_biao" class="form-control zongshu" value="{$res.main_biao}"/></td>
                                <td><input type="text"  id="san" class="form-control"  value="{$res.main_zhe}" readonly/></td>
                                <td><input type="text"  id="main_yingjiao" class="form-control zong_tongchou" value="{$res.main_yingjiao}" readonly/></td>
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" name="res[siji]" id="si_jis" value="1" class="chk" <?= $res['siji'] ==1? ' checked="checked"' : '';?>>-->
                                <!--                                </td>-->
                                <td>车上人员责任服务(司机)<input type="text" class="form-control" value="1" style="text-align: center" disabled/></td>
                                <td>
                                    <select  id="siji_tong" style="width: 100%" class="form-control">
                                        <option value="">请选择</option>
                                        <option value="10000" <?php if($res['siji_tong']=="10000"){?> selected<?php }?>>1万</option>
                                        <option value="20000" <?php if($res['siji_tong']=="20000"){?> selected<?php }?>>2万</option>
                                        <option value="30000" <?php if($res['siji_tong']=="30000"){?> selected<?php }?>>3万</option>
                                        <option value="40000" <?php if($res['siji_tong']=="40000"){?> selected<?php }?>>4万</option>
                                        <option value="50000" <?php if($res['siji_tong']=="50000"){?> selected<?php }?>>5万</option>
                                        <option value="100000" <?php if($res['siji_tong']=="100000"){?> selected<?php }?>>10万</option>
                                        <option value="200000" <?php if($res['siji_tong']=="200000"){?> selected<?php }?>>20万</option>
                                    </select>
                                </td>
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" value="{$res.siji_ji}" name="res[siji_ji]" id="siji_ji" />-->
                                <!--                                </td>-->
                                <td><input type="text"  id="siji_biao" class="form-control zongshu" value="{$res.siji_biao}"/></td>
                                <td><input type="text"  id="siji" class="form-control"  value="{$res.siji_zhe}" readonly/></td>
                                <td><input type="text"  id="siji_ying" class="form-control zong_tongchou" value="{$res.siji_ying}" readonly/></td>
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" name="res[chengke]" id="chengkess" value="1" class="chk" <?= $res['chengke'] ==1? ' checked="checked"' : '';?>>-->
                                <!--                                </td>-->
                                <td>车上人员责任服务(乘客)<input type="text"  id="zuo" class="form-control" size="15" value="{$res.chengke_zuo}" style="text-align: center" readonly/>座</td>
                                <td>
                                    <input type="hidden"  id="ck_tong" value="{$res.ck_tong}" readonly="readonly"
                                           style="width: 100%;height: 100%;border: none;margin: 0;">
                                    <select  id="ck" style="width:100%;" class="form-control">
                                        <option value="">请选择</option>
                                        <option value="10000" <?php if($res['ck_money']=="10000"){?> selected<?php }?>>1万</option>
                                        <option value="20000" <?php if($res['ck_money']=="20000"){?> selected<?php }?>>2万</option>
                                        <option value="30000" <?php if($res['ck_money']=="30000"){?> selected<?php }?>>3万</option>
                                        <option value="40000" <?php if($res['ck_money']=="40000"){?> selected<?php }?>>4万</option>
                                        <option value="50000" <?php if($res['ck_money']=="50000"){?> selected<?php }?>>5万</option>
                                        <option value="100000" <?php if($res['ck_money']=="100000"){?> selected<?php }?>>10万</option>
                                        <option value="200000" <?php if($res['ck_money']=="200000"){?> selected<?php }?>>20万</option>
                                    </select>
                                </td>
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" name="res[ck_ji]" id="ck_ji" value="{$res.ck_ji}" />-->
                                <!--                                </td>-->
                                <td><input type="text"  id="ck_biao" class="form-control zongshu" value="{$res.ck_biao}"/></td>
                                <td><input type="text"  id="cheng" class="form-control"  value="{$res.ck_zhe}" readonly/></td>
                                <td><input type="text"  id="ck_ying" class="form-control zong_tongchou" value="{$res.ck_ying}" readonly/></td>
                            </tr>
                            <tr class="tcxm-td">
                                <!--                                <td>	<input type="checkbox" lay-filter="checkall" name="" id="checkss"></td>-->
                                <td>{:__('附加服务项目')}</td>
                                <td>{:__('服务金额')}</td>
                                <!--                                <td>{:__('不计免赔')}</td>-->
                                <td>{:__('标准服务费')}</td>
                                <td>{:__('折扣(%)')}</td>
                                <td>{:__('应缴服务费')}</td>
                            </tr>
                            <!--                            机动车损失服务-->
                            <tr class="form-inline">
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" name="res[dao_name]" id="dao_name" value="1" class="chks" <?= $res['dao_name'] ==1? ' checked="checked"' : '';?>>-->
                                <!--                                </td>-->
                                <td>三者医保外用药</td>
                                <td>
                                    <select  id="dao_tong" class="form-control" style="width: 100%" >
                                        <option value="">请选择</option>
                                        <option value="50000" <?php if($res['dao_tong']=="50000"){?> selected<?php }?>>5万</option>
                                        <option value="100000" <?php if($res['dao_tong']=="100000"){?> selected<?php }?>>10万</option>
                                    </select>
                                </td>
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" value="{$res.dao_ji}" name="res[dao_ji]" id="dao_ji" />-->
                                <!--                                </td>-->
                                <td><input type="text"  id="dao_biao" class="form-control zongshu" value="{$res.dao_biao}"  readonly/></td>
                                <td><input type="text"  id="dao" class="form-control"  value="100" readonly/></td>
                                <td><input type="text"  id="dao_ying" class="form-control zong_tongchou" value="{$res.dao_ying}" readonly/></td>
                            </tr>
                            <tr class="form-inline">
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" name="res[dianwang]" value="1" id="dianwangs" class="chks" <?= $res['dianwang'] ==1? ' checked="checked"' : '';?>>-->
                                <!--                                </td>-->
                                <td>附加外部电网故障损失险</td>
                                <td><input type="text" n id="dw_tong" class="form-control" size="15" value="{$res.dw_tong}" placeholder=""  readonly/></td>
                                <!--                                <td style="text-align: center">-->
                                <!--                                    <input type="checkbox" name="res[dw_ji]" id="dw_ji" value="{$res.dw_ji}" />-->
                                <!--                                </td>-->
                                <td><input type="text"  id="dw_biao" class="form-control zongshu" value="{$res.dw_biao}"  readonly/></td>
                                <td><input type="text"  id="dw" class="form-control"  value="100" readonly/></td>
                                <td><input type="text"  id="dw_ying" class="form-control zong_tongchou" value="{$res.dw_ying}" readonly/></td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div class="form-group" style="margin-left: 0;">
                    <div class="right">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('标准服务费（合计）')}:</label>
                            <div class="col-xs-12 col-sm-10">
                                <input type="text" class="form-control"  placeholder="请输入标准服务费（合计）"  id="main_sum" oninput="vs()" onpropertychange="vs()" value="{$res.main_sum}" readonly="readonly">
                            </div>
                        </div>
                    </div>

                    <div class="right">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('折扣')}:</label>
                            <div class="col-xs-12 col-sm-10">
                                <input type="text"  class="form-control" id="addz" value="{$res.main_sumdiscount}"/>
                            </div>
                        </div>
                    </div>

                    <div class="right">
                        <div class="form-group">
                            <label class="control-label col-xs-12 col-sm-2">{:__('服务费（合计）')}:</label>
                            <div class="col-xs-12 col-sm-10">
                                <input type="text" class="form-control"  placeholder="请输入服务费（合计）"  id="main_free" oninput="vs()" onpropertychange="vs()" value="{$res.main_free}" readonly="readonly">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div style="display: flow-root;">
                <div class="tab-labels">
                    <div class="xian"></div>
                    特约及争议解决方式
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2" style="width: 110px;">{:__('争议解决方')}:</label>
                    <div class="col-xs-12 col-sm-8" style="top: 7px;left: 0">
                        <input type="radio" name="row[resolvent]" disabled value="{$res.resolvent}"  <?= $res['resolvent'] == 1 ? ' checked="checked"' : '';?> /> 诉讼
                        <input type="radio" name="row[resolvent]" disabled value="{$res.resolvent}"  <?= $res['resolvent'] == 2 ? ' checked="checked"' : '';?>/>仲裁
                    </div>
                </div>
                <div class="form-group">
                    <label class="control-label col-xs-12 col-sm-2">{:__('特别约定')}:</label>
                    <div class="col-xs-12 col-sm-10">
                        <textarea name="row[special]" rows="5" cols="10" id="txt" value="" readonly="" class="form-control" style="background: #fff;">{$res.special}</textarea>
                    </div>
                </div>
            </div>
            <div>
                <div class="tab-labels">
                    <div class="xian"></div>
                    车主信息
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('姓名')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_owner" class="form-control"  type="text" value="{$res.car_owner}" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('证件类型')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  id="car_card_kind" disabled="disabled" class="form-control">
                                <option value="0" <?php if($res['car_card_kind']=="0"){?> selected<?php }?>>身份证</option>
                                <option value="1" <?php if($res['car_card_kind']=="1"){?> selected<?php }?>>统一社会信用代码</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('证件号码')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-car_card" class="form-control"  type="text" value="{$res.car_card}">
                        </div>
                    </div>
                </div>
            </div>
            <div>
                <div class="tab-labels">
                    <div class="xian"></div>
                    被服务人信息
                </div>
                <div class="hang">
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('姓名')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-learned_name" class="form-control"  type="text" value="{$res.learned_name}" readonly>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('证件类型')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <select  id="learned_kind" disabled="disabled" class="form-control">
                                <option value="0" <?php if($res['learned_kind']=="0"){?> selected<?php }?>>身份证</option>
                                <option value="1" <?php if($res['learned_kind']=="1"){?> selected<?php }?>>统一社会信用代码</option>
                            </select>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('证件号码')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-learned_num" class="form-control"  type="text" value="{$res.learned_num}">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="control-label col-xs-12 col-sm-2">{:__('手机')}:</label>
                        <div class="col-xs-12 col-sm-10">
                            <input id="c-learned_phone" class="form-control"  type="text" value="{$res.learned_phone}">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div id="tab5" class="tab ">
            {include file="buchang/chakan/bencheluru" /}
        </div>
        <div id="tab6" class="tab">
            <div class="tab-labels">
                <div class="xian"></div>
                三者车损
            </div>
            <div class="form-group">
                <div class="col-xs-12">
                    <table class="table fieldlist" data-template="basictpl" data-name="res[basic]" id="first-table">
                        <tr class="tcxm-td">
                            <td style="width: 33px;">{:__('选择')}</td>
                            <td>{:__('序号')}</td>
                            <td>{:__('车牌号')}</td>
                            <td>{:__('驾驶员')}</td>
                            <td>{:__('性别')}</td>
                            <td>{:__('电话')}</td>
                            <td>{:__('车辆品牌')}</td>
                            <td>{:__('车辆型号')}</td>
                            <td>{:__('车辆款式')}</td>
                            <td>{:__('车架号')}</td>
                            <td>{:__('发动机号')}</td>
                            <td>{:__('维修厂名称')}</td>
                            <td>{:__('车损')}</td>
                            <td>{:__('财物')}</td>
                            <td>{:__('汇总')}</td>
                            <td>{:__('操作')}</td>
                        </tr>
                        {empty name="sanche"}
                        <tr class="form-inline">
                            <td><input type="checkbox" style="width: 15px;height: 15px;display: block;" name="id" class="form-control" value=""></td>
                            <td><input type="text"  class="form-control" value="1" name="row[xuhao]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[car_num]" /></td>
                            <td><input type="text"  class="form-control"  name="row[car_user]"/></td>
                            <td><input type="text"  class="form-control" name="row[sex]" /></td>
                            <td><input type="text"  class="form-control" name="row[phone]" /></td>
                            <td><input type="text"  class="form-control" name="row[brand]" /></td>
                            <td><input type="text"  class="form-control" name="row[model]"/></td>
                            <td><input type="text"  class="form-control" name="row[style]" /></td>
                            <td><input type="text"  class="form-control" name="row[car_vin]" /></td>
                            <td><input type="text"  class="form-control" name="row[car_engine]" /></td>
                            <td><input type="text"  class="form-control" name="row[weixiuchang]" /></td>
                            <td><input type="text"  class="form-control" name="row[heji]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[c_zongji]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[sanche_huizong]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[status]" readonly/></td>
                        </tr>
                        {/empty}
                        {volist name="sanche" id="vo"}
                        <tr class="form-inline">
                            <td><input type="checkbox" style="width: 15px;height: 15px;display: block;" name="id" class="form-control" id="sanche_id_{$vo.id}" value="{$vo.id}"></td>
                            <td><input type="text"  id="sanche_xuhao_{$vo.id}" class="form-control" value="{$vo.xuhao}" name="row[xuhao]" readonly/></td>
                            <td><input type="text"  id="sanche_car_num_{$vo.id}" class="form-control" value="{$vo.car_num}"  onclick="luru(this,{$vo.id})" name="row[car_num]" style="text-decoration: underline;color:blue;cursor: pointer;"/></td>
                            <td><input type="text"  id="sanche_car_user_{$vo.id}" class="form-control" value="{$vo.car_user}"  name="row[car_user]"/></td>
                            <td><input type="text"  id="sanche_sex_{$vo.id}" class="form-control" value="{$vo.sex}" name="row[sex]" /></td>
                            <td><input type="text"  id="sanche_phone_{$vo.id}" class="form-control" value="{$vo.phone}" name="row[phone]" /></td>
                            <td><input type="text"  id="sanche_brand_{$vo.id}" class="form-control" value="{$vo.brand}" name="row[brand]" /></td>
                            <td><input type="text"  id="sanche_model_{$vo.id}" class="form-control" value="{$vo.model}" name="row[model]"/></td>
                            <td><input type="text"  id="sanche_style_{$vo.id}" class="form-control" value="{$vo.style}" name="row[style]" /></td>
                            <td><input type="text"  id="sanche_car_vin_{$vo.id}" class="form-control" value="{$vo.car_vin}" name="row[car_vin]" /></td>
                            <td><input type="text"  id="sanche_car_engine_{$vo.id}" class="form-control" value="{$vo.car_engine}" name="row[car_engine]" /></td>
                            <td><input type="text"  id="sanche_weixiuchang_{$vo.id}" class="form-control" value="{$vo.weixiuchang}" name="row[weixiuchang]" /></td>
                            <td><input type="text"  id="heji" class="form-control" name="row[heji]" value="{$vo.heji}" readonly/></td>
                            <td><input type="text"  id="c_zongji" class="form-control" name="row[c_zongji]" value="{$vo.c_zongji}" readonly/></td>
                            <td><input type="text"  id="sanche_huizong" class="form-control" name="row[sanche_huizong]" value="{$vo.sanche_huizong}" readonly/></td>
                            <td style="width: 240px;">

                            </td>
                        </tr>
                        {/volist}
                    </table>
                </div>
            </div>
        </div>
        <div id="tab7" class="tab">
            <div class="tab-labels">
                <div class="xian"></div>
                三者财物损失
            </div>
            <div class="form-group">
                <div class="col-xs-12">
                    <table class="table fieldlist" data-template="basictpl" data-name="res[basic]" id="first-table">
                        <tr class="tcxm-td">
                            <td style="width: 33px;">{:__('选择')}</td>
                            <td>{:__('序号')}</td>
                            <td>{:__('财物名称')}</td>
                            <td>{:__('价格方案')}</td>
                            <td>{:__('金额')}</td>
                            <td>{:__('核定金额')}</td>
                            <td>{:__('操作')}</td>
                        </tr>
                        {empty name="scwusun"}
                        <tr class="form-inline">
                            <td><input type="checkbox" style="width: 15px;height: 15px;display: block;" name="id" class="form-control" value=""></td>
                            <td><input type="text"  class="form-control" value="1" name="row[xuhao]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[name]" /></td>
                            <td><input type="text"  class="form-control" name="row[fangan]" list='caiwu_fangan' />
                                <datalist id='caiwu_fangan'>
                                    {volist name="site.weixiuchang" id="vo2"}
                                    <option value='{$vo2}'>{$vo2}</option>
                                    {/volist}
                                </datalist>
                            </td>
                            <td><input type="text"  class="form-control" name="row[money]" /></td>
                            <td><input type="text"  class="form-control" name="row[hejia]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[status]"/></td>
                        </tr>
                        {/empty}
                        {volist name="scwusun" id="vo"}
                        <tr class="form-inline">
                            <td><input type="checkbox" style="width: 15px;height: 15px;display: block;" name="id" class="form-control" id="cai_id_{$vo.id}" value="{$vo.id}"></td>
                            <td><input type="text"  id="cai_xuhao_{$vo.id}" class="form-control" value="{$vo.xuhao}" name="row[xuhao]" readonly/></td>
                            <td><input type="text"  id="cai_name_{$vo.id}" class="form-control" value="{$vo.name}"  onclick="cai_luru(this,{$vo.id})" name="row[name]" style="text-decoration: underline;color:blue;cursor: pointer;"/></td>
                            <td><input type="text"  class="form-control" name="row[fangan]" id="cai_fangan_{$vo.id}" list='caiwu_fangan' value="{$vo.fangan}"/>
                                <datalist id='caiwu_fangan'>
                                    {volist name="site.weixiuchang" id="vo2"}
                                    <option value='{$vo2}'>{$vo2}</option>
                                    {/volist}
                                </datalist>
                            </td>
                            <td><input type="text"  id="cai_money_{$vo.id}" class="form-control cai_money" value="{$vo.dong_money}" name="row[money]"  oninput="cai_hendle_money()"/></td>
                            <td><input type="text"  id="cai_hejia_{$vo.id}" class="form-control" value="{$vo.hejia}" name="row[hejia]" readonly/></td>
                            <td style="width: 240px;">

                            </td>
                        </tr>
                        {/volist}
                    </table>
                    <table class="table fieldlist">
                        <tr class="form-inline form-inline1" style="border-top: 1px solid #e6e6e6;">
                            <td style="width: 33px;">小计</td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly id="cai_zongji_money"></td>
                            <td><input type="text" class="form-control" readonly id="cai_zongji_hejia"></td>
                            <td style="width: 240px;"><input class="form-control" type="text" readonly></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div id="tab8" class="tab">
            <div class="tab-labels">
                <div class="xian"></div>
                本车人伤
            </div>
            <div class="form-group">
                <div class="col-xs-12">
                    <table class="table fieldlist" data-template="basictpl" data-name="res[basic]" id="first-table">
                        <tr class="tcxm-td">
                            <td style="width: 33px;">{:__('选择')}</td>
                            <td>{:__('服务种类')}</td>
                            <td>{:__('姓名')}</td>
                            <td>{:__('性别')}</td>
                            <td>{:__('年龄')}</td>
                            <td>{:__('户籍性质')}</td>
                            <td>{:__('医疗机构')}</td>
                            <td>{:__('病案号')}</td>
                            <td>{:__('金额')}</td>
                            <td>{:__('核价金额')}</td>
                            <td>{:__('备注')}</td>
                            <td>{:__('操作')}</td>
                        </tr>
                        {empty name="benren"}
                        <tr class="form-inline">
                            <td><input type="checkbox" style="width: 15px;height: 15px;display: block;" name="id" class="form-control" value=""></td>
                            <td><input type="text"  class="form-control" name="row[type]" list='benren_type'/>
                                <datalist id='benren_type'>
                                    <option value="车上人员(司机)">车上人员(司机)</option>
                                    <option value="车上人员(乘客)">车上人员(乘客)</option>
                                </datalist>
                            </td>
                            <td><input type="text"  class="form-control" name="row[name]" /></td>
                            <td><input type="text"  class="form-control" name="row[sex]"/></td>
                            <td><input type="text"  class="form-control" name="row[age]" /></td>
                            <td><input type="text"  class="form-control" name="row[quality]"/></td>
                            <td><input type="text"  class="form-control" name="row[nuit]"/></td>
                            <td><input type="text"  class="form-control" name="row[number]"/></td>
                            <td><input type="text"  class="form-control" name="row[money]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[hejia]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[beizhu]"/></td>
                            <td></td>
                        </tr>
                        {/empty}
                        {volist name="benren" id="vo"}
                        <tr class="form-inline">
                            <td><input type="checkbox" style="width: 15px;height: 15px;display: block;" name="id" class="form-control" id="benren_id_{$vo.id}" value="{$vo.id}"></td>
                            <td><input type="text"  class="form-control" name="row[type]" id="benren_type_{$vo.id}" list='benren_type' value="{$vo.type}"/>
                                <datalist id='benren_type'>
                                    <option value="车上人员(司机)">车上人员(司机)</option>
                                    <option value="车上人员(乘客)">车上人员(乘客)</option>
                                </datalist>
                            </td>
                            <td><input type="text"  id="benren_name_{$vo.id}" class="form-control" value="{$vo.name}"  onclick="benren_luru(this,{$vo.id})" name="row[name]" style="text-decoration: underline;color:blue;cursor: pointer;"/></td>
                            <td><input type="text"  id="benren_sex_{$vo.id}" class="form-control" value="{$vo.sex}" name="row[sex]"/></td>
                            <td><input type="text"  id="benren_age_{$vo.id}" class="form-control cai_money" value="{$vo.age}" name="row[age]"/></td>
                            <td><input type="text"  id="benren_quality_{$vo.id}" class="form-control" value="{$vo.quality}" name="row[quality]"/></td>
                            <td><input type="text"  id="benren_nuit_{$vo.id}" class="form-control" value="{$vo.nuit}" name="row[nuit]"/></td>
                            <td><input type="text"  id="benren_number_{$vo.id}" class="form-control" value="{$vo.number}" name="row[number]"/></td>
                            <td><input type="text"  id="benren_money_{$vo.id}" class="form-control benren_money" value="{$vo.money}" name="row[money]" readonly/></td>
                            <td><input type="text"  id="benren_hejia_{$vo.id}" class="form-control benren_hejia" value="{$vo.hejia}" name="row[hejia]" readonly/></td>
                            <td><input type="text"  id="benren_beizhu_{$vo.id}" class="form-control" value="{$vo.beizhu}" name="row[beizhu]"/></td>
                            <td style="width: 240px;">

                            </td>
                        </tr>
                        {/volist}
                    </table>
                    <table class="table fieldlist">
                        <tr class="form-inline form-inline1" style="border-top: 1px solid #e6e6e6;">
                            <td style="width: 33px;">小计</td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" id="benren_money" name="benren_money" value=""></td>
                            <td><input type="text" class="form-control" id="benren_hejia" name="benren_hejia" value=""></td>
                            <td><input class="form-control" type="text" readonly></td>
                            <td style="width: 240px;"><input type="text" class="form-control" readonly></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
        <div id="tab9" class="tab ">
            <div class="tab-labels">
                <div class="xian"></div>
                本车人伤
            </div>
            <div class="form-group">
                <div class="col-xs-12">
                    <table class="table fieldlist" data-template="basictpl" data-name="res[basic]" id="first-table">
                        <tr class="tcxm-td">
                            <td style="width: 33px;">{:__('选择')}</td>
                            <td>{:__('服务种类')}</td>
                            <td>{:__('姓名')}</td>
                            <td>{:__('性别')}</td>
                            <td>{:__('年龄')}</td>
                            <td>{:__('户籍性质')}</td>
                            <td>{:__('医疗机构')}</td>
                            <td>{:__('病案号')}</td>
                            <td>{:__('金额')}</td>
                            <td>{:__('核价金额')}</td>
                            <td>{:__('备注')}</td>
                            <td>{:__('操作')}</td>
                        </tr>
                        {empty name="sanren"}
                        <tr class="form-inline">
                            <td><input type="checkbox" style="width: 15px;height: 15px;display: block;" name="id" class="form-control" value=""></td>
                            <td><input type="text"  class="form-control" name="row[type]" list='sanren_type'/>
                                <datalist id='sanren_type'>
                                    <option value="车上人员(司机)">车上人员(司机)</option>
                                    <option value="车上人员(乘客)">车上人员(乘客)</option>
                                </datalist>
                            </td>
                            <td><input type="text"  class="form-control" name="row[name]" /></td>
                            <td><input type="text"  class="form-control" name="row[sex]"/></td>
                            <td><input type="text"  class="form-control" name="row[age]" /></td>
                            <td><input type="text"  class="form-control" name="row[quality]"/></td>
                            <td><input type="text"  class="form-control" name="row[nuit]"/></td>
                            <td><input type="text"  class="form-control" name="row[number]"/></td>
                            <td><input type="text"  class="form-control" name="row[money]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[hejia]" readonly/></td>
                            <td><input type="text"  class="form-control" name="row[beizhu]"/></td>
                            <td></td>
                        </tr>
                        {/empty}
                        {volist name="sanren" id="vo"}
                        <tr class="form-inline">
                            <td><input type="checkbox" style="width: 15px;height: 15px;display: block;" name="id" class="form-control" id="sanren_id_{$vo.id}" value="{$vo.id}"></td>
                            <td><input type="text"  class="form-control" name="row[type]" id="sanren_type_{$vo.id}" list='sanren_type' value="{$vo.type}"/>
                                <datalist id='sanren_type'>
                                    <option value="车上人员(司机)">车上人员(司机)</option>
                                    <option value="车上人员(乘客)">车上人员(乘客)</option>
                                </datalist>
                            </td>
                            <td><input type="text"  id="sanren_name_{$vo.id}" class="form-control" value="{$vo.name}"  onclick="sanren_luru(this,{$vo.id})" name="row[name]" style="text-decoration: underline;color:blue;cursor: pointer;"/></td>
                            <td><input type="text"  id="sanren_sex_{$vo.id}" class="form-control" value="{$vo.sex}" name="row[sex]"/></td>
                            <td><input type="text"  id="sanren_age_{$vo.id}" class="form-control cai_money" value="{$vo.age}" name="row[age]"/></td>
                            <td><input type="text"  id="sanren_quality_{$vo.id}" class="form-control" value="{$vo.quality}" name="row[quality]"/></td>
                            <td><input type="text"  id="sanren_nuit_{$vo.id}" class="form-control" value="{$vo.nuit}" name="row[nuit]"/></td>
                            <td><input type="text"  id="sanren_number_{$vo.id}" class="form-control" value="{$vo.number}" name="row[number]"/></td>
                            <td><input type="text"  id="sanren_money_{$vo.id}" class="form-control sanren_money" value="{$vo.money}" name="row[money]" readonly/></td>
                            <td><input type="text"  id="sanren_hejia_{$vo.id}" class="form-control sanren_hejia" value="{$vo.hejia}" name="row[hejia]" readonly/></td>
                            <td><input type="text"  id="sanren_beizhu_{$vo.id}" class="form-control" value="{$vo.beizhu}" name="row[beizhu]"/></td>
                            <td style="width: 240px;">

                            </td>
                        </tr>
                        {/volist}
                    </table>
                    <table class="table fieldlist">
                        <tr class="form-inline form-inline1" style="border-top: 1px solid #e6e6e6;">
                            <td style="width: 33px;">小计</td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" readonly></td>
                            <td><input type="text" class="form-control" id="sanren_money" name="sanren_money" value=""></td>
                            <td><input type="text" class="form-control" id="sanren_hejia" name="sanren_hejia" value=""></td>
                            <td><input class="form-control" type="text" readonly></td>
                            <td style="width: 240px;"><input type="text" class="form-control" readonly></td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>

    {include file="buchang/chakan/jupeibeizhu" /}
    {include file="buchang/chakan/shenhe" /}
</div>
<script src="/assets/js/ace1.4/assets/js/jquery.min.js" type="text/javascript"></script>
<script>
    $('input').attr('readonly','readonly');
    $('select').attr('disabled','disabled');
    $('input[type=radio]').attr('disabled','disabled');
    $('input[type=checkbox]').attr('disabled','disabled');
    $('.zhanshi').hide();
    $(document).ready(function() {
        $('.tab-label').click(function() {
            // 移除所有标签的激活状态和内容的显示状态
            $('.tab-label, .tab').removeClass('active');
            // 添加激活状态到点击的标签和对应的内容
            $(this).addClass('active');
            $('#' + $(this).attr('for')).addClass('active');
        });
    });
    //iframe框架
    function ifranmek(url, title) {
        layer.open({
            type: 2,
            title: title,
            maxmin: true,
            area: ['90%', '800px'],
            content: url,
            success:function(layero,index){
                // window[layero.find('iframe')[0]['name']].zhanshi()
            }
        });
    }
</script>
<!--三者车损-->
<script>
    // 跳转录入
    function luru(sub,id){
        if (sub.value == ""){
            return;
        }
        if(id==''){
            return false;
        }
        ifranmek("{:url('buchang/chakan/sancheluru')}?id=" +
            id + "&type=1", '三者车损');
    }
</script>
<!--三者财务损失-->
<script>
    cai_hendle_money();
    function cai_hendle_money() {
        var moneys = document.getElementsByClassName('cai_money');
        var money = new Array();
        var result = 0;
        for(var i = 0;i < moneys.length;i++){
            money[i] = parseFloat(moneys[i].value);
            if(money[i]){
                result += money[i];
            }
        }
        var cai_zongji_money = document.getElementById('cai_zongji_money');
        if (result>0) {
            cai_zongji_money.value = result.toFixed(2);
        }
    }
    // 跳转录入
    function cai_luru(sub,id){
        if (sub.value == ""){
            return;
        }
        if(id==''){
            return false;
        }
        layer.open({
            type: 2,
            title: '三者财务损失',
            maxmin: true,
            area: ['90%', '800px'],
            content: "{:url('buchang/chakan/sancailuru')}?id=" + id + "&type=1",
            success:function(layero,index){
                // window[layero.find('iframe')[0]['name']].zhanshi()
            }
        });
    }
</script>
<!--本车人伤-->
<script>
    benren()
    function benren() {
        var moneys = document.getElementsByClassName('benren_money');
        var money = new Array();
        var result = 0;
        for (var i = 0; i < moneys.length; i++) {
            money[i] = parseFloat(moneys[i].value);
            if (money[i]) {
                result += money[i];
            }

        }
        var benren_money = document.getElementById('benren_money');
        if (result > 0) {
            benren_money.value = result.toFixed(2);
        }

        var hejias = document.getElementsByClassName('benren_hejia');
        var hejia = new Array();
        var results = 0;
        for (var i = 0; i < hejias.length; i++) {
            hejia[i] = parseFloat(hejias[i].value);
            if (hejia[i]) {
                results += hejia[i];
            }
        }
        var benren_hejia = document.getElementById('benren_hejia');
        if (results > 0) {
            benren_hejia.value = results.toFixed(2);
        }
    }
    // 跳转录入
    function benren_luru(sub,id){
        if (sub.value == ""){
            return;
        }
        if(id==''){
            return false;
        }
        layer.open({
            type: 2,
            title: '本车人伤',
            maxmin: true,
            area: ['90%', '800px'],
            content: "{:url('buchang/chakan/benrenluru')}?id=" + id + "&type=1",
            success:function(layero,index){
                // window[layero.find('iframe')[0]['name']].zhanshi()
            }
        });
    }
</script>
<!--三者人伤-->
<script>
    sanshang()
    function sanshang() {
        var moneys = document.getElementsByClassName('sanren_money');
        var money = new Array();
        var result = 0;
        for (var i = 0; i < moneys.length; i++) {
            money[i] = parseFloat(moneys[i].value);
            if (money[i]) {
                result += money[i];
            }

        }
        var benren_money = document.getElementById('sanren_money');
        if (result > 0) {
            benren_money.value = result.toFixed(2);
        }

        var hejias = document.getElementsByClassName('sanren_hejia');
        var hejia = new Array();
        var results = 0;
        for (var i = 0; i < hejias.length; i++) {
            hejia[i] = parseFloat(hejias[i].value);
            if (hejia[i]) {
                results += hejia[i];
            }
        }
        var benren_hejia = document.getElementById('sanren_hejia');
        if (results > 0) {
            benren_hejia.value = results.toFixed(2);
        }
    }
    // 跳转录入
    function sanren_luru(sub,id){
        if (sub.value == ""){
            return;
        }
        if(id==''){
            return false;
        }
        layer.open({
            type: 2,
            title: '本车人伤',
            maxmin: true,
            area: ['90%', '800px'],
            content: "{:url('buchang/chakan/sanrenluru')}?id=" + id + "&type=1",
            success:function(layero,index){
                // window[layero.find('iframe')[0]['name']].zhanshi()
            }
        });
    }
</script>